package com.qf.utils;

/**
 * @创建人: fengli
 * @创建时间: 2018/9/7 0007 10:02
 * @包: com.yizhilu.os.app.common
 * @描述:
 */
public class ConfigUtils {
    public static String getTraceInfo(){
        StringBuffer sb = new StringBuffer();

        StackTraceElement[] stacks = new Throwable().getStackTrace();
        int stacksLen = stacks.length;
        sb.append("class: " ).append(stacks[1].getClassName())
                .append("; method: ").append(stacks[1].getMethodName())
                .append("; number: ").append(stacks[1].getLineNumber());

        return sb.toString();
    }
}
